home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / relnotes / tooltalk_dev / ch6.z / ch6
Encoding:
Text File  |  2002-10-08  |  3.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4.                                   - 1 -
  5.  
  6.  
  7.  
  8.        6.  _E_x_a_m_p_l_e_s__o_n__I_R_I_S__W_o_r_k_s_t_a_t_i_o_n_s
  9.  
  10.        _t_t_s_a_m_p_l_e_1__s_g_i is a ported version of ttsample1.  It uses X
  11.        and Motif instead of Xview and compiles and runs on IRIS
  12.        workstations.
  13.  
  14.        _t_t_s_a_m_p_l_e_2__s_g_i__c_l_i_e_n_t and _t_t__s_a_m_p_l_e_2__s_g_i__s_e_r_v_i_c_e combine to
  15.        make a new example in Silicon Graphics ToolTalk that
  16.        demonstrates the _p_t_y_p_e and _a_u_t_o_s_t_a_r_t capabilities.  If you
  17.        want to build and run these programs, you must have:
  18.  
  19.           +o X11 Development Environment (_x__d_e_v._s_w)
  20.  
  21.           +o Motif Execution-Only Environment (_m_o_t_i_f__e_o_e)
  22.  
  23.           +o Motif Development System (_m_o_t_i_f__d_e_v)
  24.  
  25.        in addition to having the prerequisites listed in Section
  26.        2.4.
  27.  
  28.        To build these programs, type:
  29.  
  30.        %%%% ccccdddd ////uuuussssrrrr////TTTToooooooollllTTTTaaaallllkkkk////eeeexxxxaaaammmmpppplllleeeessss
  31.        % cp *sgi* /usr/tmp
  32.        %%%% ccccdddd ////uuuussssrrrr////ttttmmmmpppp
  33.        % mkdir ~/.tt
  34.  
  35.        The next command merges a new ptype into ~/._t_t/_t_y_p_e_s._x_d_r if
  36.        this file exists.
  37.  
  38.        %%%% mmmmaaaakkkkeeee ----ffff MMMMaaaakkkkeeeeffffiiiilllleeee....ssssggggiiii aaaallllllll
  39.  
  40.        You are now ready to run. Type:
  41.  
  42.        %%%% ttttttttssssaaaammmmpppplllleeee1111____ssssggggiiii
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                   - 2 -
  71.  
  72.  
  73.  
  74.        You can now move the _S_e_n_d slider, then press the _B_r_o_a_d_c_a_s_t
  75.        button. This sends a message to ToolTalk, which is then
  76.        received by _t_t_s_a_m_p_l_e_1__s_g_i, and the _R_e_c_e_i_v_e slider will be
  77.        updated.
  78.  
  79.        %%%% ttttttttssssaaaammmmpppplllleeee2222____ssssggggiiii____cccclllliiiieeeennnntttt
  80.  
  81.        Again, you can send the value. This time a new process,
  82.        _t_t_s_a_m_p_l_e_2__s_g_i__s_e_r_v_i_c_e, is autostarted.  The new process
  83.        receives the message and replies, updating the original
  84.        calling client, _t_t_s_a_m_p_l_e_2__s_g_i__c_l_i_e_n_t.  In this case, the
  85.        service returns the value ((val_in + 1) %100) to show that
  86.        the service is responsible for setting the new value and
  87.        sending it back in the reply.
  88.  
  89.        %%%% kkkkiiiillllllllaaaallllllll ttttttttsssseeeessssssssiiiioooonnnn
  90.  
  91.        This kills the ToolTalk server that was autostarted to
  92.        service these examples. You should also quit or kill the
  93.        example programs.
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.